In the common case where we only have a single unread notification
from a particular app, the count doesn't add useful information.
Reduce clutter a bit by only showing the notification count if we
have at least two.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/997
let count = source.unseenCount;
let countLabel = new St.Label({
text: `${count}`,
+ visible: count > 1,
style_class: 'unlock-dialog-notification-count-text',
});
textBox.add(countLabel);
} else {
let count = source.unseenCount;
obj.countLabel.text = `${count}`;
+ obj.countLabel.visible = count > 1;
}
obj.sourceBox.visible = obj.visible && (source.unseenCount > 0);